package com.sx.manage.controller.fund;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sx.manage.controller.base.MBaseController;
import com.sx.manage.service.fund.IMPersonFundDayProService;
import com.sx.manage.servlet.ViewAndModel;
import com.sx.model.manage.mybatis.form.fund.MPersonalFundProfitInfoForm;
import com.sx.model.manage.mybatis.vo.fund.MPersonFundDayProVO;
import com.sx.model.manage.mybatis.vo.result.ResultListVO;
/**
 * 个人收益Controller
 * @author lenovo
 *
 */
@Controller
@RequestMapping("/personalProfit")
public class MPersonalProfitController extends MBaseController{
	private Logger logger = LoggerFactory.getLogger(this.getClass());
	//个人基金收益
	@Resource(name="personalFundProfitServiceImpl")
	private IMPersonFundDayProService personalFundProfitServiceImpl;
 	
	public Logger getLogger() {
		return logger;
	}
	public void setLogger(Logger logger) {
		this.logger = logger;
	}
	public IMPersonFundDayProService getPersonalFundProfitServiceImpl() {
		return personalFundProfitServiceImpl;
	}
	public void setPersonalFundProfitServiceImpl(
			IMPersonFundDayProService personalFundProfitServiceImpl) {
		this.personalFundProfitServiceImpl = personalFundProfitServiceImpl;
	}
	/**
	   * 跳转到 列表界面
	   */
	  @RequestMapping(value="personalProfitView")
	  public ViewAndModel personalProfitView(){
		  ViewAndModel modelView=new ViewAndModel(request,cache);
		  				  modelView.setViewName("fund/personal/consumerIncome");
		  // 界面展开 菜单栏使用
		  return modelView;
	  }
	/**获取用户分页信息*/
	@RequestMapping(value="personalPage")	
	@ResponseBody
	public ResultListVO<MPersonFundDayProVO> personalPage(MPersonalFundProfitInfoForm form ){
	//数据查询
		return personalFundProfitServiceImpl.queryPage(form);
	}
}
